package com.zhuoyue.biz.core.command.cmd.common.faa.base;

/**
 * 液晶场景面板模式字典
 * @author wjming
 */
public enum SceneModeEnum {
    //回家
    one("01000000000000000000000000000000", "回家", "GoHome"),
    //离家
    two("02000000000000000000000000000000", "离家", "LeaveHome"),
    //起床
    three("03000000000000000000000000000000", "起床", "GetUp"),
    //起夜
    four("04000000000000000000000000000000", "起夜", "GetUpAtNight"),
    //睡眠
    five("05000000000000000000000000000000", "睡眠", "Sleep"),
    //烹饪
    six("06000000000000000000000000000000", "烹饪", "Cook"),
    //西餐
    seven("07000000000000000000000000000000", "西餐", "WestFood"),
    //中餐
    eight("08000000000000000000000000000000", "中餐", " ChineseFood"),
    //聚餐
    nine("09000000000000000000000000000000", "聚餐", "DineTogether"),
    //用餐
    ten("10000000000000000000000000000000", "用餐", "HaveDinner"),
    //洗澡
    eleven("11000000000000000000000000000000", "洗澡", "TakeABathe"),
    //洗漱
    twelve("12000000000000000000000000000000", "洗漱", "Wash"),
    //顶灯
    thirteen("13000000000000000000000000000000", "顶灯", "TopLight"),
    //灯带
    fourteen("14000000000000000000000000000000", "灯带", "LightBelt"),
    //筒灯
    fifteen("15000000000000000000000000000000", "筒灯", "DownLight"),
    //开窗帘
    sixteen("16000000000000000000000000000000", "开窗帘", "OpenCurtains"),
    //暂停
    seventeen("17000000000000000000000000000000", "暂停", "Suspend"),
    //关窗帘
    eighteen("18000000000000000000000000000000", "关窗帘", "CloseCurtains"),
    //开纱帘
    nineteen("19000000000000000000000000000000", "开纱帘", "OpenGauzeCurtains"),
    //关纱帘
    twenty("20000000000000000000000000000000", "关纱帘", "CloseGauzeCurtains"),
    //娱乐
    twenty_one("21000000000000000000000000000000", "娱乐", "Entertainment"),
    //阅读
    twenty_two("22000000000000000000000000000000", "阅读", "Read"),
    //休息
    twenty_three("23000000000000000000000000000000", "休息", "Rest"),
    //办公
    twenty_four("24000000000000000000000000000000", "办公", "Work"),
    //演讲
    twenty_five("25000000000000000000000000000000", "演讲", "Speech"),
    //电视
    twenty_six("26000000000000000000000000000000", "电视", "Television"),
    //投影
    twenty_seven("27000000000000000000000000000000", "投影", "Projection"),
    //影音
    twenty_eight("28000000000000000000000000000000", "影音", "Video"),
    //会客
    twenty_nine("29000000000000000000000000000000", "会客", "MeetingGuests"),
    //全开
    thirty("30000000000000000000000000000000", "全开", "AllOpen"),
    //全关
    thirty_one("31000000000000000000000000000000", "全关", "AllClose"),
    //上班
    thirty_two("32000000000000000000000000000000", "上班", "GoToWork"),
    //下班
    thirty_three("33000000000000000000000000000000", "下班", "GoOffWork");

    private String code;
    private String name;
    private String param;


    public String getCode() {
        return code;
    }

    public String getName() {
        return name;
    }

    public String getParam() {
        return param;
    }

    SceneModeEnum(String code, String name, String param) {
        this.code = code;
        this.name = name;
        this.param = param;
    }

    /**
     * 根据Key得到枚举的Value
     * 普通for循环遍历，比较判断
     *
     * @param key
     * @return
     */
    public static String getSceneModeEnum(String key) {
        SceneModeEnum[] alarmGrades = SceneModeEnum.values();
        for (int i = 0; i < alarmGrades.length; i++) {
            if (alarmGrades[i].getParam().equals(key)) {
                return alarmGrades[i].getCode();
            }
        }
        return "";
    }

}
